package com.video_study.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class Course implements Serializable {
    private String id;

    private String courseTitle;

    private Integer courseLikes;

    private Integer courseLooks;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;

    private String courseImage;

    private String createPerson;

    private Integer courseChapters;

    private String courseType;

    private String courseDesc;

    private Integer courseReserves;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getCourseTitle() {
        return courseTitle;
    }

    public void setCourseTitle(String courseTitle) {
        this.courseTitle = courseTitle == null ? null : courseTitle.trim();
    }

    public Integer getCourseLikes() {
        return courseLikes;
    }

    public void setCourseLikes(Integer courseLikes) {
        this.courseLikes = courseLikes;
    }

    public Integer getCourseLooks() {
        return courseLooks;
    }

    public void setCourseLooks(Integer courseLooks) {
        this.courseLooks = courseLooks;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCourseImage() {
        return courseImage;
    }

    public void setCourseImage(String courseImage) {
        this.courseImage = courseImage == null ? null : courseImage.trim();
    }

    public String getCreatePerson() {
        return createPerson;
    }

    public void setCreatePerson(String createPerson) {
        this.createPerson = createPerson == null ? null : createPerson.trim();
    }

    public Integer getCourseChapters() {
        return courseChapters;
    }

    public void setCourseChapters(Integer courseChapters) {
        this.courseChapters = courseChapters;
    }

    public String getCourseType() {
        return courseType;
    }

    public void setCourseType(String courseType) {
        this.courseType = courseType == null ? null : courseType.trim();
    }

    public String getCourseDesc() {
        return courseDesc;
    }

    public void setCourseDesc(String courseDesc) {
        this.courseDesc = courseDesc == null ? null : courseDesc.trim();
    }

    public Integer getCourseReserves() {
        return courseReserves;
    }

    public void setCourseReserves(Integer courseReserves) {
        this.courseReserves = courseReserves;
    }
}